tools/xl: Fix build error following c/s f52fbcf7
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 9 Jul 2015 10:36:22 +0000 (11:36 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 9 Jul 2015 13:57:06 +0000 (14:57 +0100)
commit314713c683c6343d2c3156202d5dcc0e139cad05
treeb9b26b2c5fb02abffd6f72a9409bfa294d03c5b9
parent5837e1ec98c2cb8d88b28cfe18a1b775f18a4779
tools/xl: Fix build error following c/s f52fbcf7

CentOS7 complains that 'ret' might be unused, and indeed this is the case for
`xl psr-hwinfo --cat`.

The logic for selecting which information to print was rather awkward.
Introduce a new 'all' which default to true, and is cleared if specific
options are selected.  This allows for a far more clear logic when choosing
whether to print information or not.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
CC: Chao Peng <chao.p.peng@linux.intel.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Tested-by: Chao Peng <chao.p.peng@linux.intel.com>
tools/libxl/xl_cmdimpl.c